<?php $__env->startSection('content'); ?>
<div class="container">
    <?php if($project): ?>
        <?php $__currentLoopData = $project; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <div class="col-sm-3 col-md-3">
                 <div class="thumbnail">
                    <div class="sa">
                        <ul class="icon-bar">
                            <li>
                                <?php echo $__env->make('project/delete', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                            </li>
                            <li>
                                <button type="button" class="btn " data-toggle="modal" data-target="#editmodal-<?php echo e($v->id); ?>">
                                    <i class="fa-btn fa fa-cog"></i>
                                </button>

                            </li>
                        </ul>
                        <?php echo $__env->make('project/edit', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    </div>
                    <a href="<?php echo e(route('project.show',$v->id)); ?>">
                        <img src="<?php echo e(asset('thum/'.$v->thum)); ?>"
                         alt="<?php echo e($v->name); ?>">
                    </a>
                    <a href="<?php echo e(route('project.show',$v->id)); ?>">
                        <div class="caption">
                            <h4 class='text-center'><?php echo e($v->name); ?></h4>
                        </div>
                    </a>
                 </div>

            </div>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>
    <div class="row">
        <div class="col-sm-3 col-md-3 create" >
             <?php echo $__env->make('project/create_project', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('projectlistJS'); ?>
<script >
    $(document).ready(function (){
        $('.icon-bar').hide();
        $('.thumbnail').hover(function() {
            $(this).find('.icon-bar').toggle()
        });
    })
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>